package design.factory.method;

/**
 * <p>
 * method test
 * </P>
 *
 * @author dingwen
 * @date 2021.10.22 14:18
 */
public class MethodTest {
    public static void main(String[] args) {
        AbstractFactory miFactory = new MiFactory();
        AbstractFactory hwFactory = new HwFactory();
        AbstractFactory iphoneFactory = new IphoneFactory();
        miFactory.makePhone().make();
        hwFactory.makePhone().make();
        iphoneFactory.makePhone().make();
    }
}
